import request from '@/utils/request';

export default {
  getPageList (page, limit, courseId) {
    return request({
      url: `/serviceedu/comment/${page}/${limit}`,
      method: 'get',
      params: { courseId }
    });
  },
  addComment (comment) {
    return request({
      url: `/serviceedu/comment/auth/save`,
      method: 'post',
      data: comment
    });
  }
};